﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class BaiTraLoiBUS
    {
        public static void Insert(BaiTraLoiDTO _traLoi)
        {
            BaiTraLoiDAO.Insert(_traLoi);
        }

        public static List<BaiTraLoiDTO> getAll()
        {
            return BaiTraLoiDAO.getAll();
        }

        public static BaiTraLoiDTO getAlongCode(int maBaiTraLoi)
        {
            return BaiTraLoiDAO.getAlongCode(maBaiTraLoi);
        }

        public static void Delete(int maBaiTraLoi)
        {
            BaiTraLoiDAO.Delete(maBaiTraLoi);
        }

        public static void Update(BaiTraLoiDTO dto)
        {
            BaiTraLoiDAO.Update(dto);
        }

    }
}
